/*
 * Copyright (C) 2015  Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */


/**
 * @file
 * @brief Functions for Artificial Intelligences for a player
 */


#ifndef PLANET_WARS_2D_RT_CORE_CONTROLLER_PLAYER_ROBOTS_UTILS_H
#define PLANET_WARS_2D_RT_CORE_CONTROLLER_PLAYER_ROBOTS_UTILS_H


#include "PlanetWars2dRT-core/specific/model/game_essential.h"


EXTERN_C_BEGIN


unsigned char
player_data_set_as_player_index(const struct game_t* game, struct player_t* player);

bool
is_possible_to_attack_planet_for_player(const struct game_t* a_game,
					unsigned char player_index,
					const struct planet_t* planet_to_attack);


EXTERN_C_END


#endif
